package com.ruogu.codegeneration.model.dto.app;

import com.ruogu.codegeneration.common.PageRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author ruogu
 */
@Data
@Schema(description = "应用查询请求")
@EqualsAndHashCode(callSuper = true)
public class AppQueryRequest extends PageRequest implements Serializable {

    /**
     * 应用编号
     */
    @Schema(description = "应用编号", example = "1")
    private Long id;

    /**
     * 应用名称
     */
    @Schema(description = "应用名称（模糊查询）", example = "智能")
    private String appName;

    /**
     * 应用封面
     */
    @Schema(description = "应用封面URL", example = "https://example.com/cover.jpg")
    private String cover;

    /**
     * 代码生成类型（枚举）
     */
    @Schema(description = "代码生成类型", example = "html", allowableValues = {"html", "multi_file"})
    private String codeGenType;

    /**
     * 部署标识
     */
    @Schema(description = "部署标识", example = "deploy123")
    private String deployKey;

    /**
     * 优先级
     */
    @Schema(description = "优先级", example = "1")
    private Integer priority;

    /**
     * 创建用户id
     */
    @Schema(description = "创建用户ID", example = "1")
    private Long userId;

    @Serial
    private static final long serialVersionUID = 1L;
}
